package com.itheima.dao;

import com.itheima.domain.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserDao  {
    @Select("select * from k_user")
    List<User> findAll();
    @Select("select * from k_user where id=#{id}")
    User findId(Integer id);
     @Insert("update  k_user set username=#{username},email=#{email},phone=#{phone},state=#{state} where id=#{id}")
    void editTo(User user);
}
